package com.bole.fallback;

import com.bole.data.Result;
import com.bole.data.ResultEnum;
import com.bole.dto.permission.RoleDto;
import com.bole.feign.RoleFeign;
import org.springframework.stereotype.Component;

@Component
public class RoleFeignFallback implements RoleFeign {
    @Override
    public Result get() {
        return Result.response(ResultEnum.FAIL).setData("熔断");
    }

    @Override
    public Result add(RoleDto roleDo, Long[] nodeIds) {
        return Result.response(ResultEnum.FAIL).setData("熔断");
    }

    @Override
    public Result getRoleById(Long id) {
        return Result.response(ResultEnum.FAIL).setData("熔断");
    }

    @Override
    public Result updateById(Long id, RoleDto role, Long[] nodeIds) {
        return Result.response(ResultEnum.FAIL).setData("熔断");
    }

    @Override
    public Result deleteById(Long id) {
        return Result.response(ResultEnum.FAIL).setData("熔断");
    }
}
